﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace MDF.Logger.Interfaces
{
    /// <summary>
    /// Save something
    /// </summary>
    public interface ILog
    {
        /// <summary>
        /// Save a normal infomatoin
        /// </summary>
        /// <param name="str_Message">str_Message</param>
        void Info(string str_Message);
        /// <summary>
        /// Save a normal infomatoin
        /// </summary>
        /// <param name="_exError"></param>
        /// <param name="str_Message"></param>
        void Info(string str_Message,Exception _exError);
        /// <summary>
        /// Save a debug infomatoin
        /// </summary>
        /// <param name="str_Message"></param>
        void Debug(string str_Message);
        /// <summary>
        /// Save a debug infomatoin
        /// </summary>
        /// <param name="_exError"></param>
        /// <param name="str_Message"></param>
        void Debug(string str_Message,Exception _exError);
        /// <summary>
        /// Save a warning infomatoin
        /// </summary>
        /// <param name="str_Message"></param>
        void Warning(string str_Message);
        /// <summary>
        /// Save a warning infomatoin
        /// </summary>
        /// <param name="_exError"></param>
        /// <param name="str_Message"></param>
        void Warning(string str_Message,Exception _exError);
        /// <summary>
        /// Save a error infomatoin
        /// </summary>
        /// <param name="str_Message"></param>
        void Error(string str_Message);
        /// <summary>
        /// Save a error infomatoin
        /// </summary>
        /// <param name="_exError"></param>
        /// <param name="str_Message"></param>
        void Error(string str_Message,Exception _exError);
        /// <summary>
        /// Get all log session
        /// </summary>
        string[] GetALL();
        /// <summary>
        /// Get detail log
        /// </summary>
        /// <param name="key"></param>
        string[] GetDetail(string key);
    }

    enum LOGTYPE
    {
        INFO,
        DEBUG,
        WARINING,
        ERROR
    }
}
